package com.hui.li.service.Impl;

import com.hui.li.entity.Book;
import com.hui.li.mapper.BookMapper;
import com.hui.li.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @projectName: Spring-RestTemplate
 * @package: com.hui.li.service.Impl
 * @className: BookServiceImpl
 * @author: Hui
 * @date: 2021/12/23 20:55
 */
@Service
public class BookServiceImpl implements BookService {

    @Autowired
    private BookMapper mapper;

    @Override
    public List<Book> selectAll() {
        return mapper.selectByExample(null);
    }
}
